//
// C++ Implementation: taskviewicons
//
// Description: 
//
//
// Author: Ernesto Barragan <ernestus *at* gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "taskviewicons.h"

TaskViewIcons::TaskViewIcons(QWidget *parent)
 : QListWidget(parent)
{
    QObject::connect(QWSServer::instance (), SIGNAL(windowEvent ( QWSWindow *, QWSServer::WindowEvent) ), this,  SLOT(windowEvent ( QWSWindow *, QWSServer::WindowEvent)));
}


TaskViewIcons::~TaskViewIcons()
{
}




/*!
    \fn TaskViewIcons::windowEvent( QWSWindow * window, QWSServer::WindowEvent eventType )
 */
void TaskViewIcons::windowEvent( QWSWindow * window, QWSServer::WindowEvent eventType )
{
    /*
        Very basic right now, we just add a the window to thw task list when appears
    */
    switch( eventType )
    {
        case QWSServer::Create :
            continue ;
        case QWSServer::Destroy :
            continue ;
            // case QWSServer::Hide QWSServer::Show QWSServer::Raise QWSServer::Lower QWSServer::Geometry QWSServer::Active QWSServer::Name 
    }
    if( QWSServer::Create == eventType )
    {
    }
    
}
